cache

object cache

Wrappers for @actions/cache.

Functions

restoreCache
Link copied to clipboard
suspend fun restoreCache(paths: List<Path>, key: String, restoreKeys: List<String> = emptyList(), useAzureSdk: Boolean = true, downloadConcurrency: Int = 8, timeoutInMs: Int = 30000): String?
Restores cache from keys
suspend fun restoreCache(paths: List<String>, key: String, restoreKeys: List<String> = emptyList(), useAzureSdk: Boolean = true, downloadConcurrency: Int = 8, timeoutInMs: Int = 30000): String?
Restores cache from keys
restoreRequiredCache
Link copied to clipboard
suspend fun restoreRequiredCache(paths: List<Path>, key: String, restoreKeys: List<String> = emptyList(), useAzureSdk: Boolean = true, downloadConcurrency: Int = 8, timeoutInMs: Int = 30000): String
Restores cache from keys, throwing if the cache misses.
suspend fun restoreRequiredCache(paths: List<String>, key: String, restoreKeys: List<String> = emptyList(), useAzureSdk: Boolean = true, downloadConcurrency: Int = 8, timeoutInMs: Int = 30000): String
Restores cache from keys, throwing if the cache misses.
saveCache
Link copied to clipboard
suspend fun saveCache(paths: List<String>, key: String, uploadConcurrency: Int = 4, uploadChunkSize: Long = 32 * 1024 * 1024): Int
Saves a list of files with the specified key

Sources

js source
Link copied to clipboard